package edu.xust.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author 
 */
@JsonIgnoreProperties(value = {"handler","serialVersionUID"})
public class Admin implements Serializable {
    private Integer adid;

    private Integer rid;

    private String adname;

    private String adpassword;

    private String repassword;

    private String adnickname;

    private String adhead;

    private String adsex;

    private String adphone;

    private String email;

    private Integer adstatus;

    private Date updatetime;

    private Date createtime;

    private static final long serialVersionUID = 1L;

    public Integer getAdid() {
        return adid;
    }

    public void setAdid(Integer adid) {
        this.adid = adid;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getAdname() {
        return adname;
    }

    public void setAdname(String adname) {
        this.adname = adname;
    }

    public String getAdpassword() {
        return adpassword;
    }

    public void setAdpassword(String adpassword) {
        this.adpassword = adpassword;
    }

    public String getRepassword() {
        return repassword;
    }

    public void setRepassword(String repassword) {
        this.repassword = repassword;
    }

    public String getAdnickname() {
        return adnickname;
    }

    public void setAdnickname(String adnickname) {
        this.adnickname = adnickname;
    }

    public String getAdhead() {
        return adhead;
    }

    public void setAdhead(String adhead) {
        this.adhead = adhead;
    }

    public String getAdsex() {
        return adsex;
    }

    public void setAdsex(String adsex) {
        this.adsex = adsex;
    }

    public String getAdphone() {
        return adphone;
    }

    public void setAdphone(String adphone) {
        this.adphone = adphone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getAdstatus() {
        return adstatus;
    }

    public void setAdstatus(Integer adstatus) {
        this.adstatus = adstatus;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }


    public Admin() {
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Admin other = (Admin) that;
        return (this.getAdid() == null ? other.getAdid() == null : this.getAdid().equals(other.getAdid()))
            && (this.getRid() == null ? other.getRid() == null : this.getRid().equals(other.getRid()))
            && (this.getAdname() == null ? other.getAdname() == null : this.getAdname().equals(other.getAdname()))
            && (this.getAdpassword() == null ? other.getAdpassword() == null : this.getAdpassword().equals(other.getAdpassword()))
            && (this.getAdnickname() == null ? other.getAdnickname() == null : this.getAdnickname().equals(other.getAdnickname()))
            && (this.getAdhead() == null ? other.getAdhead() == null : this.getAdhead().equals(other.getAdhead()))
            && (this.getAdsex() == null ? other.getAdsex() == null : this.getAdsex().equals(other.getAdsex()))
            && (this.getAdphone() == null ? other.getAdphone() == null : this.getAdphone().equals(other.getAdphone()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getAdstatus() == null ? other.getAdstatus() == null : this.getAdstatus().equals(other.getAdstatus()))
            && (this.getUpdatetime() == null ? other.getUpdatetime() == null : this.getUpdatetime().equals(other.getUpdatetime()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAdid() == null) ? 0 : getAdid().hashCode());
        result = prime * result + ((getRid() == null) ? 0 : getRid().hashCode());
        result = prime * result + ((getAdname() == null) ? 0 : getAdname().hashCode());
        result = prime * result + ((getAdpassword() == null) ? 0 : getAdpassword().hashCode());
        result = prime * result + ((getAdnickname() == null) ? 0 : getAdnickname().hashCode());
        result = prime * result + ((getAdhead() == null) ? 0 : getAdhead().hashCode());
        result = prime * result + ((getAdsex() == null) ? 0 : getAdsex().hashCode());
        result = prime * result + ((getAdphone() == null) ? 0 : getAdphone().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getAdstatus() == null) ? 0 : getAdstatus().hashCode());
        result = prime * result + ((getUpdatetime() == null) ? 0 : getUpdatetime().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", adid=").append(adid);
        sb.append(", rid=").append(rid);
        sb.append(", adname=").append(adname);
        sb.append(", adpassword=").append(adpassword);
        sb.append(", adnickname=").append(adnickname);
        sb.append(", adhead=").append(adhead);
        sb.append(", adsex=").append(adsex);
        sb.append(", adphone=").append(adphone);
        sb.append(", email=").append(email);
        sb.append(", adstatus=").append(adstatus);
        sb.append(", updatetime=").append(updatetime);
        sb.append(", createtime=").append(createtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}